package com.project.service.impl;

import com.project.dao.IUserDao;
import com.project.service.IUserService;
import com.project.util.DaoFactory;

import java.io.IOException;

public class UserServiceImpl implements IUserService {
    private IUserDao dao = (IUserDao)DaoFactory.getDao("IUserDao");
    @Override
    public void addUser() {
        dao.add();
    }

    public static void main(String[] args) throws IOException {
        IUserService service = new UserServiceImpl();
        service.addUser();
    }
}
